<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>let 与 var的区别</title>
</head>
<body>

<script src="traceur.js"></script>
<script src="bootstrap.js"></script>
<script>
    // https://www.cnblogs.com/skylar/p/3986087.html#!comments


    var tmp = new Date();

    function f(){
        console.log(tmp);
        if(false){
            var tmp = "hello";
        }
    }

    f(); // undefined

</script>
</body>
</html>